package org.yecq.tradedata.bean;

/**
 * 期货日K线
 *
 * @author yecq
 */
public class FuturesDayKLineBean {

    private String code;    // 合约代号
    private String date;    // 日期
    private double open;    // 开仓价
    private double close;   // 平仓价
    private double high;    // 最高价
    private double low;     // 最低价
    private int vol;        // 成交量

    public FuturesDayKLineBean() {
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public double getOpen() {
        return open;
    }

    public void setOpen(double open) {
        this.open = open;
    }

    public double getClose() {
        return close;
    }

    public void setClose(double close) {
        this.close = close;
    }

    public double getHigh() {
        return high;
    }

    public void setHigh(double high) {
        this.high = high;
    }

    public double getLow() {
        return low;
    }

    public void setLow(double low) {
        this.low = low;
    }

    public int getVol() {
        return vol;
    }

    public void setVol(int vol) {
        this.vol = vol;
    }

    @Override
    public String toString() {
        return "品种：" + this.code + "，日期：" + this.date + "，开盘价：" + this.open + "，最高价：" + this.high + "，最低价：" + this.low
                + "，收盘价：" + this.close + "，成交量：" + this.vol;
    }
}
